package com.atguigu.eduservice.client;

import com.atguigu.commonutils.R;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author: LDeng
 * @Date: 2022-01-04 2:26 PM
 */

/**
 * 远程调用失败的处理类
 */
@Component
public class VodClientFail implements VodClient {

    @Override
    public R removeAliyunVideo(String id) {
        System.out.println("远程调用Vod删除单个视频出错~~~~~~~~~~");
        return R.error().message("远程调用Vod删除单个视频出错");
    }

    @Override
    public R deleteBatch(List<String> videoIdList) {
        System.out.println("远程调用Vod删除多个视频出错~~~~~~~~~~");
        return R.error().message("远程调用Vod删除多个视频出错");
    }
}
